class AssetBalanceModel:
    def __init__(self, res):
        self.locked = float(res.get('locked', 0))
        self.free = float(res.get('free', 0))
        self.asset = res['asset']
